package com.hackordie.commons.hardware.components;

import com.hackordie.constants.EComponentsType;

public class NetworkCard extends AComponent {

    private String ipDirection;
    private int speedConection;
    private String connectedToIp;

    public NetworkCard(String componentName, int energyToTurOn, String ipDirection, int speedConection, int prize) {
        super(componentName, EComponentsType.NetworkCard, energyToTurOn, prize);

        this.ipDirection = ipDirection;
        this.speedConection = speedConection;
        this.connectedToIp = "";
    }

    // getters and setters
    public String getIpDirection() {
        return ipDirection;
    }
   
    public int getSpeedConection() {
        return speedConection;
    }

    public void setSpeedConection(int speedConection) {
        this.speedConection = speedConection;
    }

    public String getConnectedToIp() {
        return connectedToIp;
    }

    public void setConnectedToIp(String connectedToIp) {
        this.connectedToIp = connectedToIp;
    }
    
    @Override
    public String toString() {
        
        return super.toString() + "-" + 
                ipDirection + "-" +
                speedConection + "-" +
                connectedToIp; 
    }

}
